src = $(wildcard ./src/*c)
obj = $(patsubst ./src/%.c, ./obj/%.o, $(src))
inc_path = ./include
args = -Wall -g -D_SVID_SOURCE
CC:=gcc
ALL:tree
$(obj):./obj/%.o:./src/%.c
	$(CC) -c $< -o $@ $(args) -I $(inc_path)
tree:$(obj)
	$(CC) $^ -o $@ $(args)
clean:
	-rm -rf $(obj) tree
rebuild:clean tree
.PHONY:clean ALL rebuild